package com.ruoyi.service.mapper;

import com.ruoyi.service.domain.ServiceOrderspackages;

import java.util.List;

/**
 * 订单耗材包对应Mapper接口
 * 
 * @author ZDL
 * @date 2024-11-27
 */
public interface ServiceOrderspackagesMapper 
{
    /**
     * 查询订单耗材包对应
     * 
     * @param orderspackagesId 订单耗材包对应主键
     * @return 订单耗材包对应
     */
    public ServiceOrderspackages selectServiceOrderspackagesByOrderspackagesId(Long orderspackagesId);
    public List<ServiceOrderspackages> selectOrderspackagesByOrderId(Long orderId);

    /**
     * 查询订单耗材包对应列表
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 订单耗材包对应集合
     */
    public List<ServiceOrderspackages> selectServiceOrderspackagesList(ServiceOrderspackages serviceOrderspackages);

    /**
     * 新增订单耗材包对应
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 结果
     */
    public int insertServiceOrderspackages(ServiceOrderspackages serviceOrderspackages);

    /**
     * 修改订单耗材包对应
     * 
     * @param serviceOrderspackages 订单耗材包对应
     * @return 结果
     */
    public int updateServiceOrderspackages(ServiceOrderspackages serviceOrderspackages);

    /**
     * 删除订单耗材包对应
     * 
     * @param orderspackagesId 订单耗材包对应主键
     * @return 结果
     */
    public int deleteServiceOrderspackagesByOrderspackagesId(Long orderspackagesId);

    /**
     * 批量删除订单耗材包对应
     * 
     * @param orderspackagesIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteServiceOrderspackagesByOrderspackagesIds(Long[] orderspackagesIds);

    public List<ServiceOrderspackages> selectByOrderIdAndPackageIdNew(ServiceOrderspackages serviceOrderspackages);

}
